package com.cuiyun97.mapper;

import com.cuiyun97.domain.po.SetOss;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SetOssMapper {

    /**
     * 查询oss配置最后一条记录
     *
     * @return
     */
    @Select("select * from set_oss order by id desc limit 1")
    SetOss getLastOne();

    /**
     * 更新
     */
    void updateLastOne(SetOss lastOne);
}
